Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 Add missing Fields to RosaControlPlane #4780

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

serngawy
Copy link
Contributor

@serngawy serngawy commented Feb 6, 2024

What type of PR is this?
/kind feature

What this PR does / why we need it:
Adding the missing RosaControlPlan API fields;

Autoscaling
ComputeMachineType
ServiceCIDR
PodCIDR
HostPrefix

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
issue

Special notes for your reviewer:

Checklist:

  • squashed commits
  • includes documentation
  • includes emojis
  • adds unit tests
  • adds or updates e2e tests

Release note:

None

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/feature Categorizes issue or PR as related to a new feature. labels Feb 6, 2024
@k8s-ci-robot k8s-ci-robot requested a review from cnmcavoy February 6, 2024 22:57
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 6, 2024
@k8s-ci-robot k8s-ci-robot added needs-priority needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 6, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @serngawy. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 6, 2024
@serngawy
Copy link
Contributor Author

serngawy commented Feb 6, 2024

/cc @stevekuznetsov

@serngawy
Copy link
Contributor Author

serngawy commented Feb 6, 2024

/cc @muraee

@k8s-ci-robot
Copy link
Contributor

@serngawy: GitHub didn't allow me to request PR reviews from the following users: muraee.

Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @muraee

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Feb 7, 2024
@serngawy serngawy force-pushed the fields branch 2 times, most recently from f7a1fe1 to 2e45c68 Compare February 9, 2024 13:29
@vincepri
Copy link
Member

/ok-to-test
/assign @muraee

@vkareh
Copy link

vkareh commented Feb 16, 2024

I think we should hold this PR until the OCM/ROSA team has had a chance to review.
/cc @pvasant @robpblake

@k8s-ci-robot
Copy link
Contributor

@vkareh: GitHub didn't allow me to request PR reviews from the following users: pvasant, robpblake.

Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

I think we should hold this PR until the OCM/ROSA team has had a chance to review.
/cc @pvasant @robpblake

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

type: string
autoscaling:
description: Autoscaling specifies auto scaling behaviour for this
NodePool.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the general preference is to refer to MachinePool and not NodePool. There is no customer-visible mention of NodePool within ROSA CLI.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

the cluster, for example "10.0.0.0/16".
type: string
network:
description: Network config for the ROSA-HCP cluster.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be ROSA HCP without the -.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 20, 2024
@serngawy
Copy link
Contributor Author

/test pull-cluster-api-provider-aws-apidiff-main

@muraee
Copy link
Contributor

muraee commented Feb 21, 2024

@serngawy I think you need to rebase your branch.

@stevekuznetsov
Copy link
Contributor

Ideally this lands after #4765

@serngawy
Copy link
Contributor Author

Ideally this lands after #4765

I don't mind @stevekuznetsov but if it will takes more time to merge your PR, I would rather merge this one as there is another PR here waiting this one.

@serngawy serngawy force-pushed the fields branch 2 times, most recently from e864d26 to 950477a Compare February 22, 2024 18:32
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 28, 2024
@k8s-ci-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

// +optional
InstanceType string `json:"instanceType,omitempty"`

// Autoscaling specifies auto scaling behaviour for this MachinePool.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This GoDoc need to explain what MachinePool the content is for. Note that this spec field is on the ROSAControlPlane object.


// The instance type to use, for example `r5.xlarge`. Machine type ref; https://aws.amazon.com/ec2/instance-types/
// +optional
InstanceType string `json:"instanceType,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we do not want to support all the fields from the ROSAMachinePool here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we give the options for the default MP here, otherwise the user the need to define the RosaMP

ServiceCIDR string `json:"serviceCIDR,omitempty"`

// Network host prefix which is defaulted to `23` if not specified.
// +kubebuilder:default:=23
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// +kubebuilder:default:=23
// +kubebuilder:default=23

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like either := or = works but we use = exclusively elsewhere.


// The CNI network type default is OVNKubernetes.
// +kubebuilder:validation:Enum=OVNKubernetes;Other
// +kubebuilder:default:=OVNKubernetes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// +kubebuilder:default:=OVNKubernetes
// +kubebuilder:default=OVNKubernetes

@serngawy serngawy force-pushed the fields branch 3 times, most recently from a1d179b to ab57062 Compare February 28, 2024 21:45
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 28, 2024
Signed-off-by: melserngawy <melserng@redhat.com>
Copy link
Contributor

@stevekuznetsov stevekuznetsov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 28, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: stevekuznetsov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 28, 2024
@k8s-ci-robot k8s-ci-robot merged commit 4e748e2 into kubernetes-sigs:main Feb 28, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants